package cn.hznc.domain.entity.common;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @Author：Administrator
 * @Date：2023/8/22 11:11
 */
@Getter
@Setter
@Table(name = "t_equipment_subprogram_mapping")
@TableName(value = "t_equipment_subprogram_mapping")
public class EquipmentSubprogramMappingEntity{


    /**
     * 主键id
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 单据编号
     */
    @Column(name = "program_code",type = MySqlTypeConstant.VARCHAR,length = 200)
    @TableField(value = "program_code")
    private String programCode;

    /**
     * 单据编号
     */
    @Column(name = "equipment_id",type = MySqlTypeConstant.INT,length = 1)
    @TableField(value = "equipment_id")
    private Integer equipmentId;

    /**
     * 单据编号
     */
    @Column(name = "equipment_name",type = MySqlTypeConstant.VARCHAR,length = 200)
    @TableField(value = "equipment_name")
    private String equipmentName;

    /**
     * 单据编号
     */
    @Column(name = "create_time",type = MySqlTypeConstant.DATETIME)
    @TableField(value = "create_time")
    @JSONField(format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date createTime;

}
